package com.qqs.stock.constant;

public class DeductStockConstant {
    public enum Status {
        UNTREATED(0, "未处理"),

        NOT_ENOUGH_STOCK(-1, "库存不足"),
        OVERTIME(-2, "超时"),
        INSERT_BILL_ERROR(-3, "插入流水异常"),
        UNKNOWN_ERROR(-999, "未知错误"),
        SUCCESS(1, "成功"),
        PROCESSED_SUCCESSFUL(2, "处理过且成功");

        int code;
        String message;

        Status(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
